<template>
    <div class="box">
        <slot name="abc">这是具名插槽</slot>
        <h3>Child组件</h3>
        <div>我爱你,高圆圆</div>
        <div>有些话想对你说:</div>
        <slot>这是默认插槽</slot>
        <h3>子组件正常展示数据</h3>
        <div>name: {{ obj.name }}</div>
        <div>intro: {{ obj.intro }}</div>
        <slot name="qwer" :nickname="obj.name" :intro="obj.intro" text="测试文本"></slot>
    </div>
</template>

<script>
export default {
    name: "Child",
    props: ['obj']
};
</script>
